06. Notebook + Quiz: Difference in Means

Code

If you need a code on the https://github.com/udacity.

QUIZ QUESTION::

Quiz 1

Use the results from the first two questions above to answer match each True and False to the correct corresponding statements.

ANSWER CHOICES:



Statement

True or False

Based on the confidence interval in the first question, you have evidence that coffee drinkers are on average taller than non-coffee drinkers.

In every bootstrapped instance in the first question, the difference in your averages suggested that coffee drinkers are on average taller than non-coffee drinkers.

Based on the confidence interval in the second question, you have evidence that those older than 21 are on average taller than those younger than 21.

In every bootstrapped instance in the second question, the difference in your averages suggested that those older than 21 are on average taller than those younger than 21.

SOLUTION:

Statement

True or False

Based on the confidence interval in the first question, you have evidence that coffee drinkers are on average taller than non-coffee drinkers.

Based on the confidence interval in the second question, you have evidence that those older than 21 are on average taller than those younger than 21.

In every bootstrapped instance in the second question, the difference in your averages suggested that those older than 21 are on average taller than those younger than 21.

Based on the confidence interval in the first question, you have evidence that coffee drinkers are on average taller than non-coffee drinkers.

Based on the confidence interval in the second question, you have evidence that those older than 21 are on average taller than those younger than 21.

In every bootstrapped instance in the second question, the difference in your averages suggested that those older than 21 are on average taller than those younger than 21.

In every bootstrapped instance in the first question, the difference in your averages suggested that coffee drinkers are on average taller than non-coffee drinkers.

In every bootstrapped instance in the first question, the difference in your averages suggested that coffee drinkers are on average taller than non-coffee drinkers.

Based on the confidence interval in the first question, you have evidence that coffee drinkers are on average taller than non-coffee drinkers.

Based on the confidence interval in the second question, you have evidence that those older than 21 are on average taller than those younger than 21.

In every bootstrapped instance in the second question, the difference in your averages suggested that those older than 21 are on average taller than those younger than 21.

In every bootstrapped instance in the first question, the difference in your averages suggested that coffee drinkers are on average taller than non-coffee drinkers.

Quiz 2

Use the results from the last two questions above to select the single False statement below.

SOLUTION: Though those older than 21 were on average shorter when drinking coffee, those younger than 21 were on average taller when drinking coffee.

in the first intervals, you had evidence that the average height of coffee drinkers was taller, but in the final intervals, you had evidence that coffee drinkers in each group were actually shorter. What was this an example of:

SOLUTION: Simpson's Paradox